Optimal. Leaf size=500 \[ -\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{PolyLog}\left (3,\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{PolyLog}\left (3,\frac{2 f (a+b x)}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{PolyLog}\left (2,\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{PolyLog}\left (2,\frac{2 f (a+b x)}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^3 \text{PolyLog}\left (4,\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{6 n^3 \text{PolyLog}\left (4,\frac{2 f (a+b x)}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (-\sqrt{e^2-4 d f}+e+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (\sqrt{e^2-4 d f}+e+2 f x\right )}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.700787, antiderivative size = 500, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {2418, 2396, 2433, 2374, 2383, 6589} \[ -\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{PolyLog}\left (3,\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{PolyLog}\left (3,\frac{2 f (a+b x)}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{PolyLog}\left (2,\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{PolyLog}\left (2,\frac{2 f (a+b x)}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^3 \text{PolyLog}\left (4,\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{6 n^3 \text{PolyLog}\left (4,\frac{2 f (a+b x)}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (-\sqrt{e^2-4 d f}+e+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (\sqrt{e^2-4 d f}+e+2 f x\right )}{2 a f-b \left (\sqrt{e^2-4 d f}+e\right )}\right )}{\sqrt{e^2-4 d f}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2396
Rule 2433
Rule 2374
Rule 2383
Rule 6589
Rubi steps
\begin{align*} \int \frac{\log ^3\left (c (a+b x)^n\right )}{d+e x+f x^2} \, dx &=\int \left (\frac{2 f \log ^3\left (c (a+b x)^n\right )}{\sqrt{e^2-4 d f} \left (e-\sqrt{e^2-4 d f}+2 f x\right )}-\frac{2 f \log ^3\left (c (a+b x)^n\right )}{\sqrt{e^2-4 d f} \left (e+\sqrt{e^2-4 d f}+2 f x\right )}\right ) \, dx\\ &=\frac{(2 f) \int \frac{\log ^3\left (c (a+b x)^n\right )}{e-\sqrt{e^2-4 d f}+2 f x} \, dx}{\sqrt{e^2-4 d f}}-\frac{(2 f) \int \frac{\log ^3\left (c (a+b x)^n\right )}{e+\sqrt{e^2-4 d f}+2 f x} \, dx}{\sqrt{e^2-4 d f}}\\ &=\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e-\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e+\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{(3 b n) \int \frac{\log ^2\left (c (a+b x)^n\right ) \log \left (\frac{b \left (e-\sqrt{e^2-4 d f}+2 f x\right )}{-2 a f+b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{a+b x} \, dx}{\sqrt{e^2-4 d f}}+\frac{(3 b n) \int \frac{\log ^2\left (c (a+b x)^n\right ) \log \left (\frac{b \left (e+\sqrt{e^2-4 d f}+2 f x\right )}{-2 a f+b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{a+b x} \, dx}{\sqrt{e^2-4 d f}}\\ &=\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e-\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e+\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{(3 n) \operatorname{Subst}\left (\int \frac{\log ^2\left (c x^n\right ) \log \left (\frac{b \left (\frac{-2 a f+b \left (e-\sqrt{e^2-4 d f}\right )}{b}+\frac{2 f x}{b}\right )}{-2 a f+b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{x} \, dx,x,a+b x\right )}{\sqrt{e^2-4 d f}}+\frac{(3 n) \operatorname{Subst}\left (\int \frac{\log ^2\left (c x^n\right ) \log \left (\frac{b \left (\frac{-2 a f+b \left (e+\sqrt{e^2-4 d f}\right )}{b}+\frac{2 f x}{b}\right )}{-2 a f+b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{x} \, dx,x,a+b x\right )}{\sqrt{e^2-4 d f}}\\ &=\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e-\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e+\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{Li}_2\left (\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{Li}_2\left (\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\left (6 n^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (c x^n\right ) \text{Li}_2\left (-\frac{2 f x}{-2 a f+b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{x} \, dx,x,a+b x\right )}{\sqrt{e^2-4 d f}}+\frac{\left (6 n^2\right ) \operatorname{Subst}\left (\int \frac{\log \left (c x^n\right ) \text{Li}_2\left (-\frac{2 f x}{-2 a f+b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{x} \, dx,x,a+b x\right )}{\sqrt{e^2-4 d f}}\\ &=\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e-\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e+\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{Li}_2\left (\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{Li}_2\left (\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{Li}_3\left (\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{Li}_3\left (\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{\left (6 n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3\left (-\frac{2 f x}{-2 a f+b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{x} \, dx,x,a+b x\right )}{\sqrt{e^2-4 d f}}-\frac{\left (6 n^3\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3\left (-\frac{2 f x}{-2 a f+b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{x} \, dx,x,a+b x\right )}{\sqrt{e^2-4 d f}}\\ &=\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e-\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{\log ^3\left (c (a+b x)^n\right ) \log \left (-\frac{b \left (e+\sqrt{e^2-4 d f}+2 f x\right )}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{Li}_2\left (\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{3 n \log ^2\left (c (a+b x)^n\right ) \text{Li}_2\left (\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{Li}_3\left (\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^2 \log \left (c (a+b x)^n\right ) \text{Li}_3\left (\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}+\frac{6 n^3 \text{Li}_4\left (\frac{2 f (a+b x)}{2 a f-b \left (e-\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}-\frac{6 n^3 \text{Li}_4\left (\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right )}{\sqrt{e^2-4 d f}}\\ \end{align*}
Mathematica [A] time = 0.719166, size = 993, normalized size = 1.99 \[ \frac{-2 \sqrt{e^2-4 d f} \tan ^{-1}\left (\frac{e+2 f x}{\sqrt{4 d f-e^2}}\right ) \log ^3(a+b x) n^3+\sqrt{4 d f-e^2} \log ^3(a+b x) \log \left (1-\frac{2 f (a+b x)}{-e b+\sqrt{e^2-4 d f} b+2 a f}\right ) n^3-\sqrt{4 d f-e^2} \log ^3(a+b x) \log \left (\frac{2 f (a+b x)}{b \left (e+\sqrt{e^2-4 d f}\right )-2 a f}+1\right ) n^3+6 \sqrt{4 d f-e^2} \text{PolyLog}\left (4,\frac{2 f (a+b x)}{-e b+\sqrt{e^2-4 d f} b+2 a f}\right ) n^3-6 \sqrt{4 d f-e^2} \text{PolyLog}\left (4,\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right ) n^3+6 \sqrt{e^2-4 d f} \tan ^{-1}\left (\frac{e+2 f x}{\sqrt{4 d f-e^2}}\right ) \log ^2(a+b x) \log \left (c (a+b x)^n\right ) n^2-3 \sqrt{4 d f-e^2} \log ^2(a+b x) \log \left (c (a+b x)^n\right ) \log \left (1-\frac{2 f (a+b x)}{-e b+\sqrt{e^2-4 d f} b+2 a f}\right ) n^2+3 \sqrt{4 d f-e^2} \log ^2(a+b x) \log \left (c (a+b x)^n\right ) \log \left (\frac{2 f (a+b x)}{b \left (e+\sqrt{e^2-4 d f}\right )-2 a f}+1\right ) n^2-6 \sqrt{4 d f-e^2} \log \left (c (a+b x)^n\right ) \text{PolyLog}\left (3,\frac{2 f (a+b x)}{-e b+\sqrt{e^2-4 d f} b+2 a f}\right ) n^2+6 \sqrt{4 d f-e^2} \log \left (c (a+b x)^n\right ) \text{PolyLog}\left (3,\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right ) n^2-6 \sqrt{e^2-4 d f} \tan ^{-1}\left (\frac{e+2 f x}{\sqrt{4 d f-e^2}}\right ) \log (a+b x) \log ^2\left (c (a+b x)^n\right ) n+3 \sqrt{4 d f-e^2} \log (a+b x) \log ^2\left (c (a+b x)^n\right ) \log \left (1-\frac{2 f (a+b x)}{-e b+\sqrt{e^2-4 d f} b+2 a f}\right ) n-3 \sqrt{4 d f-e^2} \log (a+b x) \log ^2\left (c (a+b x)^n\right ) \log \left (\frac{2 f (a+b x)}{b \left (e+\sqrt{e^2-4 d f}\right )-2 a f}+1\right ) n+3 \sqrt{4 d f-e^2} \log ^2\left (c (a+b x)^n\right ) \text{PolyLog}\left (2,\frac{2 f (a+b x)}{2 a f+b \left (\sqrt{e^2-4 d f}-e\right )}\right ) n-3 \sqrt{4 d f-e^2} \log ^2\left (c (a+b x)^n\right ) \text{PolyLog}\left (2,\frac{2 f (a+b x)}{2 a f-b \left (e+\sqrt{e^2-4 d f}\right )}\right ) n+2 \sqrt{e^2-4 d f} \tan ^{-1}\left (\frac{e+2 f x}{\sqrt{4 d f-e^2}}\right ) \log ^3\left (c (a+b x)^n\right )}{\sqrt{-\left (e^2-4 d f\right )^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 12.324, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( \ln \left ( c \left ( bx+a \right ) ^{n} \right ) \right ) ^{3}}{f{x}^{2}+ex+d}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left ({\left (b x + a\right )}^{n} c\right )^{3}}{f x^{2} + e x + d}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left ({\left (b x + a\right )}^{n} c\right )^{3}}{f x^{2} + e x + d}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]